Conversation
…rameterized-routes tests Remove unreliable navigation breadcrumb assertions from parameterized-routes E2E tests across all Next.js versions (13, 14, 15, 16, 16-bun, 16-cf-workers). These tests verify route parameterization, not breadcrumbs. The breadcrumb was not reliably present due to timing issues, causing flaky CI failures. Co-Authored-By: Claude <noreply@anthropic.com> Agent-Logs-Url: https://github.com/getsentry/sentry-javascript/sessions/6fc52aae-3e31-4ee7-bff3-fda21894f880 Co-authored-by: Lms24 <8420481+Lms24@users.noreply.github.com>
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Core
Deps
Other
Bug Fixes 🐛Deno
Other
Internal Changes 🔧Deps
Other
🤖 This preview updates automatically when you update the PR. |
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Core
Deps
Bug Fixes 🐛
Internal Changes 🔧Deps
Other
🤖 This preview updates automatically when you update the PR. |
size-limit report 📦
|
|
Hmm so usually I'd dismiss this as heavy AI slop but I'm not really sure why we assert on a navigation breadcrumb in a pageload transaction. Seems to me like chances are pretty high that it's not there reliably. I assume this comes from NextJS client router doing some |
|
@Lms24 I have no good reason for this assertion other than it is something that was present in older tests and it carried over. I think the most important thing here is the transaction assertion itself, the breadcrumb isn't that important IMO, but unsure what other users would think. |
Yeah, I think this is the most likely cause here. This probably worked reliably in older Next versions but in newer ones, the client router's behaviour might have changed (just a guess). Suggestion: I just marked this as ready to review. If you and Charly agree that we can get rid of the assertions, let's do it. We can also scope it to just Next 16 and leave it in place for earlier Next versions. If we don't merge this PR this week while I'm still here, please feel free to merge or close it any time afterwards |
Navigation breadcrumb assertion in nextjs-16 parameterized-routes test is flaky — the breadcrumb isn't reliably present due to timing. These tests validate route parameterization, not breadcrumb recording, so the assertion is unnecessary.
breadcrumbs: expect.arrayContaining([...])from all parameterized-routes tests across all Next.js versions (13, 14, 15, 16, 16-bun, 16-cf-workers)